set $mod Mod4

set $left h
set $down j
set $up k
set $right l

set $term foot

output * bg /home/artikus/wall.png fill

bindsym --to-code $mod+q kill
bindsym --to-code $mod+t exec footclient
#bindsym --to-code Ctrl+Return exec tofi-run | xargs swaymsg exec --
bindsym --to-code Ctrl+Return exec menu
bindsym --to-code $mod+u exec notif
bindsym --to-code $mod+s exec screenshot
bindsym --to-code $mod+a exec wl-copy $(wl-paste)

bindsym --locked XF86MonBrightnessUp exec doas /home/artikus/.scripts/bright 1
bindsym --locked XF86MonBrightnessDown exec doas /home/artikus/.scripts/bright
bindsym XF86AudioMute pactl exec set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +10% && vol
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -10% && vol
bindsym XF86Launch1 exec lock
bindsym --to-code $mod+Shift+c reload
bindsym --to-code $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'

bindsym --to-code $mod+$left focus left
bindsym --to-code $mod+$down focus down
bindsym --to-code $mod+$up focus up
bindsym --to-code $mod+$right focus right

bindsym --to-code $mod+Left focus left
bindsym --to-code $mod+Down focus down
bindsym --to-code $mod+Up focus up
bindsym --to-code $mod+Right focus right

bindsym --to-code $mod+Shift+$left move left
bindsym --to-code $mod+Shift+$down move down
bindsym --to-code $mod+Shift+$up move up
bindsym --to-code $mod+Shift+$right move right

bindsym --to-code $mod+Shift+Left move left
bindsym --to-code $mod+Shift+Down move down
bindsym --to-code $mod+Shift+Up move up
bindsym --to-code $mod+Shift+Right move right

floating_modifier $mod normal
bindsym --to-code $mod+v splith
bindsym --to-code $mod+c splitv
bindsym --to-code $mod+f fullscreen
bindsym --to-code $mod+space floating toggle
bindsym --to-code $mod+Shift+space focus mode_toggle

bindsym --to-code $mod+Shift+minus move scratchpad
bindsym --to-code $mod+minus scratchpad show

bindsym --to-code $mod+r mode "resize"
mode "resize" {
	bindsym --to-code $left resize shrink width 10px
	bindsym --to-code $down resize grow height 10px
	bindsym --to-code $up resize shrink height 10px
	bindsym --to-code $right resize grow width 10px

	bindsym --to-code Left resize shrink width 10px
	bindsym --to-code Down resize grow height 10px
	bindsym --to-code Up resize shrink height 10px
	bindsym --to-code Right resize grow width 10px

	bindsym --to-code Return mode "default"
	bindsym --to-code Escape mode "default"
}

bindsym --to-code $mod+1 workspace number 1
bindsym --to-code $mod+2 workspace number 2
bindsym --to-code $mod+3 workspace number 3
bindsym --to-code $mod+4 workspace number 4
bindsym --to-code $mod+5 workspace number 5
bindsym --to-code $mod+6 workspace number 6
bindsym --to-code $mod+7 workspace number 7
bindsym --to-code $mod+8 workspace number 8
bindsym --to-code $mod+9 workspace number 9
bindsym --to-code $mod+0 workspace number 10

bindsym --to-code $mod+Shift+1 move container to workspace number 1
bindsym --to-code $mod+Shift+2 move container to workspace number 2
bindsym --to-code $mod+Shift+3 move container to workspace number 3
bindsym --to-code $mod+Shift+4 move container to workspace number 4
bindsym --to-code $mod+Shift+5 move container to workspace number 5
bindsym --to-code $mod+Shift+6 move container to workspace number 6
bindsym --to-code $mod+Shift+7 move container to workspace number 7
bindsym --to-code $mod+Shift+8 move container to workspace number 8
bindsym --to-code $mod+Shift+9 move container to workspace number 9
bindsym --to-code $mod+Shift+0 move container to workspace number 10

output eDP-1 pos 1600 0
output VGA-1 pos 0 0
workspace 1 output eDP-1
workspace 2 output eDP-1
workspace 3 output eDP-1
workspace 4 output eDP-1
workspace 5 output eDP-1
workspace 6 output VGA-1
workspace 7 output VGA-1
workspace 8 output VGA-1
workspace 9 output VGA-1
workspace 10 output VGA-1

#gaps inner 10
#gaps outer 10

hide_edge_borders smart

default_border pixel 2
default_floating_border pixel 2
client.focused #f7768e #f7768e #f7768e
client.unfocused #666666 #666666 #666666


input type:keyboard {
	xkb_layout us,ru
	xkb_options grp:alt_shift_toggle,altwin:swap_alt_win,caps:swapescape
}

for_window {
	[app_id="menu"] floating enable
	[window_role="pop-up"] floating enable
	[window_role="bubble"] floating enable
	[window_role="dialog"] floating enable
	[window_type="dialog"] floating enable
	[title="LibreWolf — Sharing Indicator"] floating enable
}

#xwayland disable

exec_always dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus
exec_always bat-warning
exec_always lang.py
exec_always foot -s

assign [class="Element"] 2
workspace 2
exec element-desktop
workspace 1
exec telegram-desktop

